package StructuralModel.AdapterPattern;

/**
 * @author 王蕾 [wanglei_dev@cyou-inc.com]
 * @date 2017-12-11 12:54:00
 */
public class AdapterClient {



    public static void main(String[] args) {
        PlayerTarget play1 = new ForwardPlayerTarget("我是前锋啦");
        play1.Attack();
        PlayerTarget play2 = new CenterPlayerTarget("我是中锋啦");
        play2.Attack();

        PlayerTarget play3= new TranslatorAdapter("姚明");
        play3.Attack();
        play3.Defense();

    }
}
